package net.zjitc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = "/test")
public class TestController {
    @RequestMapping(value = "/forword")
    public String forword(Model model){
        model.addAttribute("msg","forword");
        return "forward:/WEB-INF/jsp/msg.jsp";
    }
    @RequestMapping(value = "redirect")
    public String redirect(Model model){
        return "redirect:/redirect.jsp";
    }
}
